home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
examples.arc
/
EXAMPL37.PRO
< prev
next >
Wrap
Text File
|
1986-10-07
|
696b
|
27 lines
/* Program 37 */
/*
NOTE: all graphics programs are in white on a
black(blue) background. If you don't like this
combination it can easily be changed. You can
change the parameters to the 'graphics'
predicate, or you can change the drawing
color. Read page 92 and try some combinations
of parameters. For example: graphics(1,5,17)
on a CGA will give you pink letters and a
white line on a blue background. Other systems
give different colors. Just explore.
*/
predicates
inspiral(integer)
goal
graphics(1,1,0),
pencolor(7),
inspiral(70).
clauses
inspiral(X):-
X < 340, !, forward(5000),right(X),Y=X+1,inspiral(Y).